// 底部铅笔类
import { Pencil } from "./pencil.js";
import { Sprite } from "../base/sprite.js";
import { DataStore } from "../base/dataStore.js";

export class DownPencil extends Pencil {
  constructor(top) {
    const image = Sprite.getImage("pencilDown");
    super(
      image, top
    );
  }
  draw() {
    let gap = DataStore.getInstance().canvas.height/5;
    this.y = this.top+gap;
    super.draw();
  }
}